package com.shujia.day16.sjms.easyfactory;

public class Operator {
    public static void main(String[] args) {
        // 如果要创建一个Dog

        Animal dog = AnimalFactory.getAnimal("dog");
        dog.sleep();


        Animal cat = AnimalFactory.getAnimal("cat");
        cat.sleep();
    }
}
